
package system.base;

import framework.core.*;

/*
	Author    :Jackey
	CreateTime:2008-02-27 11:04:38
*/
public class TableSequenceSearchEvent extends SearchEvent
{

	private String m_id = "" ; // all

	private String m_warehouse_code = "" ; // all

	private String m_datatable_name = "" ; // all

	private int m_cur_val = Value.NULL_INT ; // all

	private String m_create_time = "" ; // all

	private String m_last_update_time = "" ; // all
		

public TableSequenceSearchEvent() 
{
	super();
	
	setOrderField(TableSequence.ID);
		
}



	public String getId()
	{
		return m_id ;
	}
	public void setId(String v)
	{
		m_id = v;
	}

	public String getWarehouseCode()
	{
		return m_warehouse_code ;
	}
	public void setWarehouseCode(String v)
	{
		m_warehouse_code = v;
	}

	public String getDatatableName()
	{
		return m_datatable_name ;
	}
	public void setDatatableName(String v)
	{
		m_datatable_name = v;
	}

	public int getCurVal()
	{
		return m_cur_val ;
	}
	public void setCurVal(int v)
	{
		m_cur_val = v;
	}

	public String getCreateTime()
	{
		return m_create_time ;
	}
	public void setCreateTime(String v)
	{
		m_create_time = v;
	}

	public String getLastUpdateTime()
	{
		return m_last_update_time ;
	}
	public void setLastUpdateTime(String v)
	{
		m_last_update_time = v;
	}
		



	public String viewId() throws Exception
	{
		return Value.view(getId());
	}

	public String viewWarehouseCode() throws Exception
	{
		return Value.view(getWarehouseCode());
	}

	public String viewDatatableName() throws Exception
	{
		return Value.view(getDatatableName());
	}

	public String viewCurVal() throws Exception
	{
		return Value.view(getCurVal());
	}

	public String viewCreateTime() throws Exception
	{
		return Value.view(getCreateTime());
	}

	public String viewLastUpdateTime() throws Exception
	{
		return Value.view(getLastUpdateTime());
	}


	public Conditions toConditions() throws Exception
	{
		Conditions c = super.toConditions();

	c.add(getCondition(TableSequence.ID,getId()));

	c.add(getCondition(TableSequence.WAREHOUSE_CODE,getWarehouseCode()));

	c.add(getCondition(TableSequence.DATATABLE_NAME,getDatatableName()));

	c.add(getCondition(TableSequence.CUR_VAL,getCurVal()));

	c.add(getCondition(TableSequence.CREATE_TIME,getCreateTime()));

	c.add(getCondition(TableSequence.LAST_UPDATE_TIME,getLastUpdateTime()));
		

			
		return c ;
	}
	
//add by Jackey start

//add by Jackey end
}
